//
//  FGYTabBarViewController.m
//  yingKe
//
//  Created by ma c on 16/9/8.
//  Copyright (c) 2016年 beijing. All rights reserved.
//

#import "FGYTabBarViewController.h"
#import "FGYNavViewController.h"
#import "FGYTabBar.h"
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width

@interface FGYTabBarViewController ()

@property (strong, nonatomic)FGYTabBar * FgyTabBar;

@end

@implementation FGYTabBarViewController

- (FGYTabBar *)FgyTabBar{
    if (!_FgyTabBar) {
        _FgyTabBar = [[FGYTabBar alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0)];
    }
    return _FgyTabBar;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [[UITabBar appearance]setShadowImage:[UIImage new]];
    [[UITabBar appearance]setBackgroundImage:[[UIImage alloc]init]];
    [self.tabBar addSubview:self.FgyTabBar];
    [self addChildController];
}

#pragma mark -
#pragma mark - 添加自控制器
- (void)addChildController{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
